package com.sen.gulimall.cart.feign;

import com.sen.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author Kisen
 * @email lqs0911@qq.com
 * @date 2022/11/13 15:42
 * @detail
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {


    @RequestMapping("product/skuinfo/info/{skuId}")
    R getSkuInfo(@PathVariable("skuId") Long skuId);

    @GetMapping("product/skusaleattrvalue/stringList/{skuId}")
    List<String> getSkuSaleAttrValues(@PathVariable("skuId") Long skuId);

    @PostMapping("product/skuinfo/price")
    Map<Long, BigDecimal> getPrice(@RequestBody List<Long> skuIds);
}
